package com.tarena.vehicle.management.mapper;

import com.tarena.vehicle.management.pojo.entity.VehicleInsurance;
import com.tarena.vehicle.management.pojo.vo.VehicleInsuranceListItemVO;
import com.tarena.vehicle.management.pojo.vo.VehicleInsuranceStrandVO;
import java.util.List;

public interface VehicleInsuranceMapper {

    int getCountByPolicyNum(String num);

    int insert(VehicleInsurance insurance);

    VehicleInsuranceStrandVO getVehicleInsuranceById(Integer id);

    int updateVehicleInsuranceUndueStatusById(Integer id);

    int updateVehicleInsuranceExpireStatusById(Integer id);

    int updateVehicleInsurance(VehicleInsurance insurance);

    List<VehicleInsuranceListItemVO> getVehicleInsuranceAll(VehicleInsurance insurance);

    int deleteVehicleInsuranceById(Integer id);
}
